Skip to content

Add FiveM Lua Extension#6642

Open
manipou wants to merge 4 commits into
zed-industries:mainfrom
manipou:main
Open

Add FiveM Lua Extension#6642
manipou wants to merge 4 commits into
zed-industries:mainfrom
manipou:main

Conversation

@manipou

@manipou manipou commented Jun 26, 2026

Copy link
Copy Markdown

Summary

This pull request registers the fivem-lua extension in the Zed marketplace registry.

It provides comprehensive autocompletion, rich snippets, interactive parameter placeholders, and hover documentation for 5,300+ FiveM Lua native functions, core runtime utilities, and fxmanifest.lua templates.


Key Features

  • 5,300+ Native APIs: Includes the entire native registry directly from the official FiveM documentation.
  • PascalCase Only: Focuses exclusively on standard PascalCase definitions (e.g. GetPlayerPed), keeping the autocomplete menu clean and distraction-free.
  • Interactive Parameter Tab-Stops: Auto-populates parameters as interactive placeholders (${1:entity}, ${2:x}, etc.) so developers can press Tab to fill in arguments quickly.
  • Overload Support: Correctly groups and supports client/server/shared native variations. Different parameter signatures appear as distinct autocomplete options in the editor and are declared as standard ---@overload annotations in the library stubs (preventing LSP warnings).
  • FiveM Utility Helpers: Adds custom templates for event handlers (RegisterNetEvent, AddEventHandler), loop threads (CreateThread, Wait), NUI messaging (RegisterNUICallback, SendNUIMessage), and a comprehensive fxmanifest.lua boilerplate.

Checklist

  • Extension directory contains a valid, accepted open-source license.
  • extensions.toml and .gitmodules entries are alphabetically sorted (validated with bun run sort-extensions / pnpm sort-extensions).
  • Submodule is added using an HTTPS URL (https://github.com/manipou/fivem-lua-zed.git).
  • Installed and thoroughly tested locally as a dev extension in Zed.

@cla-bot cla-bot Bot added the cla-signed label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant